import request from '@/utils/request'

// 查询客户列表列表
export function listUserInfo(query) {
    return request({
        url: '/client/userInfo/list',
        method: 'get',
        params: query
    })
}

// 查询客户列表详细
export function getUserInfo(id) {
    return request({
        url: '/client/userInfo/' + id,
        method: 'get'
    })
}

// 新增客户列表
export function addUserInfo(data) {
    return request({
        url: '/client/userInfo',
        method: 'post',
        data: data
    })
}

// 修改客户列表
export function updateUserInfo(data) {
    return request({
        url: '/client/userInfo',
        method: 'put',
        data: data
    })
}

// 删除客户列表
export function delUserInfo(id) {
    return request({
        url: '/client/userInfo/' + id,
        method: 'delete'
    })
}
// 获取用户地址
export function getUserAddress(id) {
    return request({
        url: '/client/userInfo/getUserAddress/' + id,
        method: 'get'
    })
}